import React, {Component} from 'react';
import {createStackNavigator} from "react-navigation";

import HomePage from './page/home-page'
import SettingPage from './page/setting-page'
import StoragePage from "./page/storage-page";
import AnimatedPage from "./page/animated-page";
import ComponentPage from "./page/component-page";
import DrawerLayoutPage from "./page/drawer-layout";
import DropDownPage from "./page/drop-down";

const NavigationConfig = createStackNavigator(
    {
        home: HomePage,
        setting: SettingPage,
        storage: StoragePage,
        animated: AnimatedPage,
        component: ComponentPage,
        drawerLayout:DrawerLayoutPage,
        dropDown: DropDownPage,
    },
    {
        navigationOptions: {
            header: null
        }
    }
);

class Entry extends React.Component {
    render() {
        return (
            <NavigationConfig screenProps={this.props}/>
        )
    }
}

export default Entry;
